package com.seo.utils.alipay;

import com.alipay.api.domain.AlipayTradePagePayModel;
import com.alipay.api.internal.util.json.JSONWriter;
import com.alipay.api.request.AlipayTradePagePayRequest;


public class AlipayWapRequestBuilder {
	private AlipayTradePagePayModel model = new AlipayTradePagePayModel();
	private AlipayTradePagePayRequest request = new AlipayTradePagePayRequest();


	public AlipayTradePagePayModel getModel() {
		return model;
	}

	public void setModel(AlipayTradePagePayModel mod) {
		this.model = mod;
	}

	public AlipayTradePagePayRequest getRequest() {
		request.setBizContent(new JSONWriter().write(model, true));
		return request;
	}

	public void setRequest(AlipayTradePagePayRequest req) {
		this.request = req;
	}

	public AlipayWapRequestBuilder setReturnUrl(String returnUrl) {
		request.setReturnUrl(returnUrl);
		return this;
	}

	public AlipayWapRequestBuilder setNotifyUrl(String notifyUrl) {
		request.setNotifyUrl(notifyUrl);
		return this;
	}

}
